<?php


namespace app\zhongcan\model;


use think\Model;

class NewsModel extends Model
{
    protected $name = 'news';
    protected $autoWriteTimestamp = 'datetime';

    //获取器修改状态的值
//    public function getSwitchAttr($value)
//    {
//        $status = ['1' => '是','0' => '否'];
//        return $status[$value];
//    }
}